<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
<button ><a th:href="@{'/insertPage'}">添加用户</a> </button>
<table>
    <thead>
    <tr>
        <th>Id</th>
        <th>Username</th>
        <th>Password</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="users:${users}">
        <td th:text="${users.id}"></td>
        <td th:text="${users.username}"></td>
        <td th:text="${users.password}"></td>
        <td>
            <a th:href="@{'/updatePage/'+${users.id}}">更改</a>
            <a th:href="@{'/delete/'+${users.id}}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>